package cn.bjc.user.mapper;

import cn.bjc.basic.mapper.BaseMapper;
import cn.bjc.user.domain.User;

/**
 * 用户mapper层
 */
public interface UserMapper extends BaseMapper<User> {
    
    //新用户注册时,查询手机是否被注册过
    User findByPhone(String phone);


    //新用户注册时,查询邮箱是否被注册过
    User findByEmail(String email);

    //根据logininfo获取user对象
    User loadByLogininfoId(Long id);
}
